home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Apple Script / scripts / Canvas Scripts / CV AppleScript tips.text < prev    next >
Text File  |  1993-06-08  |  2KB  |  31 lines

  1. Some helpful hints on Scripting Canvas:
  2.  
  3. 1)  While using the Script Editor, if you ever get lost or can't remember one of the AppleEvent commands, you can always choose "Open Dictionary…" from the file menu of the "Script Editor" application, then help it to locate your copy of Canvas on your disk.  A handy, commented list of all the events and syntaxes for Canvas will show up.
  4.  
  5. 2)  In order to start using the recording feature of AppleScript with Canvas, you must first tell Canvas that you want it to record.  To do this, execute a mini-script, which would look similiar to this:
  6.  
  7. tell application "Canvas™ 3.0"
  8.     Set Recording State 1
  9. end tell
  10.  
  11. There is a script enclosed, called "Canvas Recording On" which does this.
  12.  
  13. This command must be executed before any recording activities, and must be done everytime you start Canvas if you plan to record AppleEvents.
  14.  
  15. Note, very few of the AppleEvents, which can be passed to Canvas with AppleScript, can be recorded.  They are:
  16. a. Menu selection
  17. b. Object selection
  18. c. External tool reshaping of objects
  19. d. Selecting objects
  20. e. Deselecting objects
  21. f. Adding objects to current selection
  22. g. Deleting selected objects
  23.  
  24. There will be more in the future, but, the enclosed scripts will give you an idea of the syntax of scripting lines for Canvas.
  25.  
  26. 3) The folder entitled "enclosed Need Q-time movies" has scripts that were written to activate some QuickTime movies embedded in the Canvas document "Gustav CV File".  If you have some self-looping QuickTime movies on your hard disk, you might want to try these scripts out.
  27.  
  28. 4)  The simple scripts enclosed will give you a rough idea of how you can script Canvas, the rest is up to the creativity of the script-writer.
  29.  
  30.  
  31.